/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-04-19
 * Time:21:45
 */

/**
 * JZ10斐波那契数列
 */

public class Fibonacci {
    public static void main(String[] args) {
        System.out.println(Fibonacci(4));
    }
    public static int Fibonacci(int n) {
        if (n == 1 || n == 2){
            return 1;
        }
        return Fibonacci(n-1) + Fibonacci(n -  2);
    }
}
